const ProjectRequest = require("../project/project_request.js");

/**
 * 经销商申请
 */
function requestAgent(data, callback) {
  const url = "/request/agent/submit";
  ProjectRequest.postRequest(url, data, callback);
}

/**
 * 判断是否已经申请代理
 */
function hasRequestAgent(callback) {
  const url = "/request/agent/test";
  ProjectRequest.getRequest(url, callback);
}

module.exports = {
  requestAgent,
  hasRequestAgent
};